#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

//struct People
//{
//	char name[20];
//	int age;
//	char gender[15];
//	struct People person;
//};

//typedef struct People
//{
//	char name[20];
//	int age;
//	char gender[15];
//	People* person;
//}People;

int main()
{
	/*struct People ZhangSan = { "zhangsan",18,"man" };
	struct People LiSi = { "lisi",16,"woman" };*/

	/*struct People ZhangSan = { .age = 18,.gender = "man",.name = "zhangsan" };
	struct People LiSi = { .gender = "woman",.age = 18,.name = "lisi" };*/

	//struct s1
	//{
	//	char c1;
	//	char c2;
	//	int i;
	//}s1;

	//struct s2
	//{
	//	char c1;
	//	int i;
	//	char c2;
	//}s2;

	//printf("%zd\n", sizeof(struct s1));//8
	//printf("%zd\n", sizeof(struct s2));//12


	struct Person {
		char name[50];
		int age;
	};

	struct Person person1;
	person1.age = 25;

	struct Person* ptrPerson;
	ptrPerson = malloc(sizeof(struct Person));
	ptrPerson->age = 30;

	return 0;
}